   		  <H1>Welcome to eduFirst Test Center</H1>
      <p>Established in 2007, eduFirst is one of partners of Prometric and Pearson VUE in Vietnam. We hope to deliver our services to meet all of your specific needs, including many certification tests.</p>
      
    <div class="leftbox">
	
   	  <h1>First-time users</h1>
      <strong>Become a member now!</strong>
      <div class="btn_go"><a href="#"><a href="<?php echo $html->url('/trainees/register');?>">
        <input name="input2" type="button" value="Sign Up" />
      </a></a></div>
      </div><!--endleftbox-->
      <div class="rightbox">
      	<h1>Already With Us?</h1>
        <strong>Enter your ID and Password!</strong>
		<?php echo $form->create('Trainee',array('action'=>'login'));?>
		<p><?php echo $form->input('user',array('label'=>'<strong>Username</strong>','error'=>'Please enter username!','class'=>'txt_input','div'=>''));?></p>
		<p><?php echo $form->input('pass',array('type'=>'password', 'label'=>'<strong>Password</strong>','error'=>'Please enter password!','class'=>'txt_input','value'=>'','div'=>''));?></p>
                <div class="error-message"><?php if (isset($errorlogin))echo $errorlogin; // hien thi thong bao loi neu co?></div>
	<?php
	if ($this->Session->check('loginfail'))
	{
		$loginfail = $this->Session->read('loginfail');
		if($loginfail > 2)
		{
	?>
		<p><img id="captcha" src="<?php echo $this->Html->url('/trainees/captcha_image/');?>" alt="" /><br /></p>
		<p><?php echo $form->input('captcha',array('label'=>'<strong>Verify Code</strong>','error'=>'Please enter verify code!','class'=>'txt_input','div'=>''));?></p>
		<div class="error-message"><?php if (isset($error))echo $error; // hien thi thong bao loi neu co?></div>
        <a href="javascript:void(0);" onclick="javascript:document.images.captcha.src='<?php echo $this->Html->url('/trainees/captcha_image/');?>?' + Math.round(Math.random(0)*1000)+1">Reload image</a><br /> 		
		<?php
		}
	}
	?>
		<a class="black_button" href="javascript:login();">
		<div class="btn_go"><a href="#"><?php echo $form->end('Sign In');?></a></div>        
            <a href="<?php echo $html->url('/trainees/recover');?>">Forgot your password ?</a>
      </div><!--endleftbox-->
    <div id="clearone"></div>

   